﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using WS.EKA.Business.Model;

namespace WS.EKA.UI.Business.Bussiness
{
    internal class LatestImportantJobFactory : ReportBase<List<LatestImportantJob>>
    {
        public override WebSocketClientType Key
        {
            get
            {
                return WebSocketClientType.ITNotice_LatestImportantJob;
            }
        }

        public override string GetJsonString(object parameter)
        {
            var obj = parameter as ReportParameter<List<LatestImportantJob>>;
            return JsonConvert.SerializeObject(obj.Data);
        }
    }
}
